﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NavigationShowcase.ViewModels;
using WinRTFramework.DefaultImplementations;
using WinRTFramework.FrameworkConfiguration;

namespace NavigationShowcase.WinRTFrameworkConfiguration
{
    class ViewViewModelMapper : DefaultViewViewModelMapper
    {
        static Dictionary<Type, Type> ViewToViewModelMap = new Dictionary<Type, Type>(new []
                                                                                          {
                                                                                              new { Key = typeof(GroupedItemsPage), Value = typeof(GroupedItemsPageViewModel_Showcase)},
                                                                                              new { Key = typeof(GroupDetailPage), Value = typeof(GroupDetailPageViewModel_Showcase)},
                                                                                              new { Key = typeof(ItemDetailPage), Value = typeof(ItemDetailPageViewModel_Showcase)},
                                                                                          }.ToDictionary(m => m.Key, m => m.Value));

        public ViewViewModelMapper(IIoCAdapter ioCAdapter)
            : base(ViewToViewModelMap, ioCAdapter)
        {
        }
    }
}
